// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/config3d/api/IbConfig3dApi'

import ComClass from '@api/ComQuery'
import LatestModelClass from '@api/config3d/model/Config3dModelLatestReq'

const CLIENT = CORE.grpcCLIENT(Client)
const COM = [ComClass, 'ComReq']

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 最新组态模型 —————————————————————————————— //

  async get3dModelLatest(param, TIP = '最新组态模型') {
    const DTO = CORE.grpcDTO(LatestModelClass, param, COM)
    const resp = await CORE.grpc(TIP, CLIENT, 'config3dModelLatest', DTO)
    return resp.content
  },
}
